package service;

import bean.Order;
import utils.BusinessException;

import java.util.List;

public interface OrderService {

    //购买商品
    public void buyProduct(Order order) throws BusinessException;
    //查询订单列表
    public List<Order> list() throws BusinessException;
    //通过订单id查询订单
    public Order findById(int orderId) throws BusinessException;
}
